/**
 * 设置document 的 title
 */
import defaultConfig from "@/config";

const title = defaultConfig.title || "vue3练习项目";

export default function getPageTitle(pageTitle?: string): string {
  return pageTitle ? `${pageTitle} - ${title}` : `${title}`;
}
